<template>
  <div class="video">
    <video :src="video.url"  controls="controls"></video>
  </div>
</template>

<script>
    export default {
        name: "Video",

      data(){
          return{
            video:""
          }
      },created() {
        var this_=this
        this_.$axios.get('http://127.0.0.1:8080/dongzuo/shipin',{params: {
            id: this_.$store.state.click_index_actionid
          }})
          .then(function (response) {
            this_.video=response.data[0]
            this_.$store.state.video_info=this_.video

          })
      }
    }
</script>

<style scoped>
  .video{
    width: 100%;
    margin: auto;
  }
  video{
    width: 100%;
  }
</style>
